
var ProManCalendar = new Object();

ProManCalendar.createView = function() {
	var view = new WindView();
	
	var layoutView = WindLayout.createView();
	view.addView(layoutView);
	
	var rowView = layoutView.createRowView();
	
	{
		//var cellView = rowView.createCellView();

		//var actionsView = ProManCalendar.createActionsView();
		//cellView.addView(actionsView);
	}
	
	{
		var cellView = rowView.createCellView();

		var calendarView = ProManCalendar.createCalendarView();
		cellView.addView(calendarView);
	}
	
	return view;
}

ProManCalendar.createActionsView = function() {
	var actionsModel = new WindPanelModel();
	actionsModel.addTextEntry("Today")
	actionsModel.addTextEntry("This week")
	actionsModel.addTextEntry("This month")
	actionsModel.addTextEntry("This year");
	actionsModel.addSeparator();
	actionsModel.addTextEntry("Agenda");

	var actionsView = WindPanel.createView(actionsModel);
	return actionsView;
}

ProManCalendar.createCalendarView = function() {
	var calendarModel = XKalendar.createModelForThisWeek();
	
	{
		var entryModel = calendarModel.createEntry();
		
		var title = "Calendar Entry A";
		var startDate = new Date();
		var finishDate = new Date();
		
		entryModel.setTitle(title);
		finishDate.setMinutes(finishDate.getMinutes() + 75);
		entryModel.setStartDate(startDate);
		entryModel.setFinishDate(startDate);
	}
	
	var calendarView = XKalendar.createView(calendarModel);
	
	return calendarView;
}

